import request from "@/utils/request.js";

const api = {
  // 获取用户信息接口
  
  scenic: (data) => {
    return request({
      url: "/app/Scenic/index",
      method: "POST",
      data
    });
  },
  strategy: (data) => {
    return request({
      url: "/app/intro/index",
      method: "POST",
      data
    });
  },
  login: (data) => {
    return request({
      url: "/app/User/index",
      method: "POST",
      data
    });
  },  
  agreement: (data) => {
    return request({
      url: "/app/Agreement/index",
      method: "POST",
      data
    });
  },
  amend: (data) => {
    return request({
      url: "/app/user/pass",
      method: "POST",
      data
    });
  },
  award: (data,header) => {
    return request({
      url: "/app/Winning/add",
      method: "POST",
      data,
      header
    });
  },
  register: (data) => {
    return request({
      url: "/app/user/add",
      method: "POST",
      data
    });
  },
  details: (data) => {
    return request({
      url: "/app/Ticketing/index",
      method: "POST",
      data
    });
  },
  activity: (data) => {
    return request({
      url: "/app/Winning/index",
      method: "POST",
      data:data
    });
  },
  notice: (data) => {
    return request({
      url: "/app/active/index",
      method: "POST",
      data:data
    });
  },
  activitys: (data) => {
    return request({
      url: "/app/Actprize/index",
      method: "POST",
      data:data
    });
  },
  Alipay: (data) => {
    return request({
      url: "/app/order/add",
      method: "POST",
      data
    });
  },
  img: (data) => {
    return request({
      url: "/app/img/index",
      method: "POST",
      data
    });
  },
  Indent: (data) => {
    return request({
      url: "/app/order/index",
      method: "POST",
      data
    });
  },
  deleteOrder: (data) => {
    return request({
      url: "/app/order/del",
      method: "POST",
      data
    });
  },
};

export default api;
